]> dgit.raspbian.org Git - gnome-shell.git/commit
na-tray-child: Use absolute icon position as root event coordinates
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 25 Apr 2024 15:13:34 +0000 (17:13 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 29 Apr 2024 16:50:13 +0000 (16:50 +0000)
commit794acd65a8681d55ebcc74d2d049fc994ac43657
tree8e05fa0c227e21bcdd96e395fe71111e71a5b19c
parent80a37bcf53592cb7f4da823c1f8b2146142d4504
na-tray-child: Use absolute icon position as root event coordinates

Currently we're using relative positioning when sending click events to
tray icon clients, and this leads to some apps (especially Qt ones) to
try to open the menus at such absolute coordinate under X11.

To prevent this to happen, let's get the root coordinate from the xembed
and let's use it to compute the synthetic event root x/y.

We could have even used the actual event position for this, but getting
it from the xembed makes this more consistent.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3283>
src/tray/na-tray-child.c
src/tray/na-xembed.c
src/tray/na-xembed.h